<?php

/**
 * CondoritoEstudianteInscrita form base class.
 *
 * @method CondoritoEstudianteInscrita getObject() Returns the current form's model object
 *
 * @package    condorito
 * @subpackage form
 * @author     Freddy Daniel Garcia
 */
abstract class BaseCondoritoEstudianteInscritaForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'id_estudiante' => new sfWidgetFormInputHidden(),
      'id_materia'    => new sfWidgetFormInputHidden(),
    ));

    $this->setValidators(array(
      'id_estudiante' => new sfValidatorPropelChoice(array('model' => 'CondoritoEstudiante', 'column' => 'id', 'required' => false)),
      'id_materia'    => new sfValidatorPropelChoice(array('model' => 'CondoritoMateria', 'column' => 'id', 'required' => false)),
    ));

    $this->widgetSchema->setNameFormat('condorito_estudiante_inscrita[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'CondoritoEstudianteInscrita';
  }


}
